<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="java.util.List"%>
<%@ page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form"uri="http://www.springframework.org/tags/form"%>

<%@page import="biblioteca.persistencia.*"%>
<%@page import="biblioteca.dao.*" %>
<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="/stylesheets/menu.css" media="screen"/>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <script language=" JavaScript" type="text/javascript">
            function comprobarbusqueda(){
                var p= document.getElementsByName("palabra");
                if(p[0].value == 0){
                 alert("introduce una palabra");
             }
            }
        </script>
        

        
        
        <title>Catálogo</title>
    </head>
    
    <body>
        

    
    <td align="center" class="searchcontent" colspan="2">
     <fieldset style="border: 2px solid black" aling="center">
            <form action="/busqueda" method="get">
                	Criterio de búsqueda<select name="criterio">
                        <optgroup label="" >
                            <option value="1">ISBN</option>
                        </optgroup>
                    </select>
                <legend>Selecciona criterio de búsqueda</legend>
		Buscar:<input type="text" name="palabra"/>
                       <input type="submit" value="Enviar" onclick="comprobarbusqueda()" />
                       <input type="button" value="Volver" onclick="history.back()">
            </form>
        </fieldset>
    
</html>
